import request from '@/utils/request';
// 能力服务分析详情

// 查询能力服务集合
export function queryDataDeatil(data: anyObj): ApiPromise<ApiResponse> {
	return request({
		url: '/middle-platform/modules/serverDetail/queryDataDeatil',
		method: 'post',
		data: data,
	});
}

// 查询中断次数/耗时趋势
export function queryDataInterruptTimeTrend(data: anyObj): ApiPromise<ApiResponse> {
	return request({
		url: '/middle-platform/modules/serverDetail/queryDataInterruptTimeTrend',
		method: 'post',
		data: data,
	});
}

// 查询响应量统计
export function queryDataResponseSnapshot(data: anyObj): ApiPromise<ApiResponse> {
	return request({
		url: '/middle-platform/modules/indicatorData/queryDataResponseSnapshot',
		method: 'post',
		data: data,
	});
}

// 查询访问量最大的服务器Top10
export function queryDataRequestCountTopN(data: anyObj): ApiPromise<ApiResponse> {
	return request({
		url: '/middle-platform/modules/serverDetail/queryDataRequestCountTopN',
		method: 'post',
		data: data,
	});
}

// 查询新建会话最大的服务器Top10
export function queryDataNewSessionCountTopN(data: anyObj): ApiPromise<ApiResponse> {
	return request({
		url: '/middle-platform/modules/serverDetail/queryDataNewSessionCountTopN',
		method: 'post',
		data: data,
	});
}

// 查看系统返回码统计
export function queryDataServerResCodeStatistics(data: anyObj): ApiPromise<ApiResponse> {
	return request({
		url: '/middle-platform/modules/serverDetail/queryDataServerResCodeStatistics',
		method: 'post',
		data: data,
	});
}

// 查看业务返回码统计
export function queryDataBusinessResCodeStatistics(data: anyObj): ApiPromise<ApiResponse> {
	return request({
		url: '/middle-platform/modules/serverDetail/queryDataBusinessResCodeStatistics',
		method: 'post',
		data: data,
	});
}

// TCP分析
export function queryDataTcp(data: anyObj): ApiPromise<ApiResponse> {
	return request({
		url: '/middle-platform/modules/serverDetail/queryDataTcp',
		method: 'post',
		data: data,
	});
}
